
import java.awt.Event;
import java.awt.Rectangle;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;

public class holaaa  extends JFrame {

	//import statements
	//Check if window closes automatically. Otherwise add suitable code
		JButton b;
		public static void main(String args[]) {
			new holaaa();
		}
		holaaa() {
			JLabel jlbHelloWorld = new JLabel("Hello World");
			b = new JButton();
			Rectangle r = new Rectangle(100,100,100,100);
			b.setBounds(r);
			b.setText("boton!!");
			b.setRequestFocusEnabled(true);
			
			add(b);
			add(jlbHelloWorld);
			
			this.setSize(600, 600);
			// pack();
			setVisible(true);
		}
		
		
	}

